(function(){
    let pptv_el = document.getElementById('pptv_playpage_box');
    pptv_el.style.position = "fixed";
    pptv_el.style.width = "100%";
    pptv_el.style.height = "100vh";
    pptv_el.style.zIndex = "10000";
    document.body.appendChild(pptv_el);
    document.body.style.overflow = 'hidden';
    
    function removeChildren(elements){
        let parent;
        for(let el of elements){
            if (el){
                parent = el.parentElement;
                parent.removeChild(el);
            }
        }
    }
    for(let tagName of ['header', 'footer', 'nav']){
        removeChildren(document.getElementsByTagName(tagName));
    }
    for(let className of ['footer', 'ywtop', 'nav', 'header', 'con_top', 'lm', 'bdshare', 'bdshare_t', 'comment', 'g_copyright','wp-grid']){
        removeChildren(document.getElementsByClassName(className));
    }
    for(let id of ['g-1408-hd', 'mainContent', 'player-sidebar']){
        removeChildren([document.getElementById(id)]);
    }

}());